//
//  ZKDownLoadTaskManager.h
//  sensen_ios
//
//  Created by pro on 16/3/30.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ZKDownLoadTaskDelegate <NSObject>

- (void)downLoadProgressDidChange:(CGFloat)progress; // 下载进度改变
- (void)downLoadDidPause;                            // 下载暂停
- (void)downLoadDidFinish;                           // 下载完成

@end

@interface ZKDownLoadTaskManager : NSObject

@property (nonatomic, strong) id<ZKDownLoadTaskDelegate> delegate;

@property (nonatomic, assign) BOOL isPaused;

/*
 单例
 */
+ (instancetype)manager;

/*
 开启下载
 */
- (void)startDownLoadWithUrl:(NSString *)urlStr
                    delegate:(id<ZKDownLoadTaskDelegate>)delegate;
/*
 暂停下载
 */
- (void)pause;
@end
